import service from '@/utils/request'

// @Tags EmailConfig
// @Summary 创建EmailConfig
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.EmailConfig true "创建EmailConfig"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /emailConfig/createEmailConfig [post]
export const createEmailConfig = (data) => {
  return service({
    url: '/emailConfig/createEmailConfig',
    method: 'post',
    data
  })
}

// @Tags EmailConfig
// @Summary 删除EmailConfig
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.EmailConfig true "删除EmailConfig"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /emailConfig/deleteEmailConfig [delete]
export const deleteEmailConfig = (data) => {
  return service({
    url: '/emailConfig/deleteEmailConfig',
    method: 'delete',
    data
  })
}

// @Tags EmailConfig
// @Summary 删除EmailConfig
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除EmailConfig"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /emailConfig/deleteEmailConfig [delete]
export const deleteEmailConfigByIds = (data) => {
  return service({
    url: '/emailConfig/deleteEmailConfigByIds',
    method: 'delete',
    data
  })
}

// @Tags EmailConfig
// @Summary 更新EmailConfig
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.EmailConfig true "更新EmailConfig"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /emailConfig/updateEmailConfig [put]
export const updateEmailConfig = (data) => {
  return service({
    url: '/emailConfig/updateEmailConfig',
    method: 'put',
    data
  })
}

// @Tags EmailConfig
// @Summary 用id查询EmailConfig
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.EmailConfig true "用id查询EmailConfig"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /emailConfig/findEmailConfig [get]
export const findEmailConfig = (params) => {
  return service({
    url: '/emailConfig/findEmailConfig',
    method: 'get',
    params
  })
}

// @Tags EmailConfig
// @Summary 分页获取EmailConfig列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取EmailConfig列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /emailConfig/getEmailConfigList [get]
export const getEmailConfigList = (params) => {
  return service({
    url: '/emailConfig/getEmailConfigList',
    method: 'get',
    params
  })
}
